#ifndef __MAINWINDOW_H__
#define __MAINWINDOW_H__

#include <wx/wx.h>
#include <wx/aui/auibar.h>
#include <map>
#include "contactbutton.h"
#include "gadu.h"

enum{
    TOOL_STATUS = 1,
    MENU_AVAIL,
    MENU_BUSY,
    MENU_INVISIBLE,
    MENU_NOT_AVAIL
};

class Bitmaps{
    public:
        static std::map<int, wxBitmap> bitmap;
        Bitmaps(){
            Bitmaps::bitmap[GG_STATUS_AVAIL] = wxBitmap(wxT("protocolImages/GaduGadu/available.png"), wxBITMAP_TYPE_PNG);
            Bitmaps::bitmap[GG_STATUS_BUSY] = wxBitmap(wxT("protocolImages/GaduGadu/wait.png"), wxBITMAP_TYPE_PNG);
            Bitmaps::bitmap[GG_STATUS_INVISIBLE] = wxBitmap(wxT("protocolImages/GaduGadu/unseen.png"), wxBITMAP_TYPE_PNG);
            Bitmaps::bitmap[GG_STATUS_NOT_AVAIL] = wxBitmap(wxT("protocolImages/GaduGadu/not_available.png"), wxBITMAP_TYPE_PNG);
        };
};

class ContactButton;

class ScrolledWidgetsPane : public wxScrolledWindow{
    public:
        ContactButton* checked;
        ScrolledWidgetsPane(wxWindow* parent, wxWindowID id);

    //void OnDraw(wxDC& dc){}
};

class MainWindow : public wxFrame{
    public:
        MainWindow(wxFrame *frame, const wxString& title);
        ~MainWindow();

    private:
        wxAuiToolBar* tools;

        void OnClose(wxCloseEvent&);
        void OnDropDownMenu(wxCommandEvent& event);
        void clickEvents(wxCommandEvent& event);
        DECLARE_EVENT_TABLE()
};

#endif //__MAINWINDOW_H__
